package receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import config.CommonValue;
import service.TimerSyncService;

/**
 * Created by TJ on 2016/3/22.
 */
public class AlarmSyncReceiver extends BroadcastReceiver {
    public AlarmSyncReceiver() {
        if (CommonValue.isDebug) Log.i("AlarmSyncReceiver", "constructor...");
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        if (CommonValue.isDebug) Log.i("AlarmSyncReceiver", "onReceive start...");
        Context appContext = context.getApplicationContext();
        Intent iTss = new Intent(appContext, TimerSyncService.class);
        appContext.startService(iTss);
    }
}
